package com.jh.paymentchannel.service;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.jh.common.utils.CommonConstants;
import org.springframework.web.bind.annotation.RestController;


/**
 * 此接口已不再使用。
 * @deprecated 接口已不再使用，下下个迭代版本中将被删除。
 */
@RestController
@Deprecated
public class BalanceService {

    @PostMapping(value = "/v1.0/paymentchannel/pay/queryBalance")
    public Map<String, Object> queryBalance(
            @RequestParam(value = "brandcode", required = false, defaultValue = "0") String brandcode,//品牌id
            @RequestParam(value = "channel_type", required = false, defaultValue = "2") String channelType,    //0充值1代付
            @RequestParam(value = "channel_tag", required = false, defaultValue = "YILIAN") String channelTag //渠道标识
    ) {
        // 永远返回查询失败
        Map<String, Object> map = new HashMap<>();
        map.put(CommonConstants.RESP_CODE, CommonConstants.SUCCESS);
        map.put(CommonConstants.RESP_MESSAGE, "查询失败");
        return map;
    }
}
